package ningbo.Controlling_Execution;

/**
 * @Author 宁铂
 * @Date 2021/7/12 20:53
 * @Version 1.0
 */
public class IfElse2 {

    static int test(int test, int target){
        if(test > target)
            return +1;
        else if(test < target)
            return  -1;
        else
            return  0;
    }

    public static void main(String[] args) {

        System.out.println(test(10, 5));

        System.out.println(test(5, 10));

        System.out.println(test(5, 5));
    }
}
